package com.wms.system.domain.entity.sale;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wms.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.util.Date;

@Data
@TableName("sale_project_track_record")
public class SaleProjectTrackRecord {
    @TableId(type = IdType.AUTO)
    @TableField("id")
    @ApiModelProperty("id")
    private Long id;

    @TableField("create_user_name")
    @ApiModelProperty("创建人名称")
    private String createUserName;

    @TableField("create_time")
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("修改人名称")
    @TableField("update_user_name")
    private String updateUserName;

    @TableField("update_time")
    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("项目id")
    @TableField("project_id")
    private Long projectId;

    @ApiModelProperty("项目编号")
    @TableField(exist = false)
    @Excel(name = "项目编号")
    private String projectCode; // 项目编号：P202510001

    @ApiModelProperty("项目名称")
    @TableField(exist = false)
    @Excel(name = "项目名称")
    private String projectName; // 项目名称


    @ApiModelProperty("日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate trackDate;

    @ApiModelProperty("备注")
    private String remark;



}
